//
//  LXAccountSettingCell.m
//  LvXi_newVersion
//
//  Created by 王敏 on 2016/11/17.
//  Copyright © 2016年 SJT. All rights reserved.
//

#import "LXAccountSettingCell.h"

@implementation LXAccountSettingCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if(self = [super initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:reuseIdentifier]){
        self.cellHeight = 50;
    }
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    
    self.textLabel.size = [self.textLabel.text sizeInAre:MaxSize font:self.textLabel.font];
    
    self.detailTextLabel.size = [self.detailTextLabel.text sizeInAre:MaxSize font:self.detailTextLabel.font];
    
    self.detailTextLabel.x = ScreenWidth  - self.detailTextLabel.width - 30;
    self.textLabel.x = 30;
    self.textLabel.y = (self.cellHeight - self.textLabel.height)*0.5;
    self.detailTextLabel.y = (self.cellHeight - self.textLabel.height)*0.5;
}

@end
